More bugs noticed

Hi Oliver,

Noticed some more bugs. Some kongs don't show, it only shows for the person who konged but not everyone else.

Also, when a pung is available the indicator blinks for the person who can pung. This is giving away that persons tiles, it shouldn't blink for the person who can call it should remain on the person who discarded until a call is made.

Also, I had some trouble when my friends created a table, I could see them but not join the game they were in until I changed browsers.

Thanks,

Jayrocs 2019-07-17T08:00:07Z

Also, one more thing. Until there is a scoreboard the point screen last longer? Maybe have a 20 second timer or it can skip if everyone presses Resume before the timer ends.

I was trying to keep score on a difference piece of paper or sheet but if even one person click the screen it goes away for everyone. This won't be a problem in the future when you add a score tracker but until then.

Jayrocs 2019-07-17T08:34:35Z

score board is added, cheers! Please expect roughly one month to implement the Hong Kong rules. Maybe sooner, or maybe later, not very sure.

will look into the bugs you mentioned above. will let you know when they are done.

now I have the following todo list:

  1. bug fix
  2. add hong kong rule
  3. add timer for player
  4. add min score to win zungjung rule
Oliver 2019-07-19T08:07:46Z

Hi Oliver,

How do I see the scoreboard? Minimum score would probably be more priority than the timer since the score timer no longer matters if there is a scoreboard.

The bigger bug as well is being able to see who can call the pung. The green indicator shows whos call it is showing everyone that that person has a pair of that tile.

Jayrocs 2019-07-19T08:41:11Z

I'll try again tomorrow but I just played several hands and do not see a scoreboard. I played multiple hands in same table and the score always resets as if it's the only hand played.

I saw a score next to user name outside in the main lobby, is that what you were talking about as scoreboard? I tried multiple browsers as well.

Jayrocs 2019-07-19T08:50:06Z

The score board shows the payoff history and sum in the menu column, it appears after the first hand. Bots score are showed.

Yes, there are human player's overall scores in the menu column. it appears when one enters the game. bot's overall score is not showed. Play a few hands and you should the see the score. I tested with chrome and firefox.

Oliver 2019-07-19T16:13:00Z

To use new updates, you need clear browser cache of this site. This is a problem of web apps.

would consider the priorities based on your suggestions, thanks

Oliver 2019-07-19T16:21:01Z

Thanks for the help Oliver. It's starting to be really functional can't wait for the hong kong new style rules.

As a reminder, the link is here: http://mahjong.wikidot.com/rules:hong-kong-new-style-scoring

Variation 3 is probably the best version with a 3 fan minimum.

Jayrocs 2019-07-19T18:20:23Z

Oliver, does the game actually shuffle and build the walls? How are the tiles randomized? Just seems weird at how often I am seeing incredibly rare hands like 3 sequential pungs.

I've never gotten that hand in my life and got it twice now on this app. Are the tiles just pure RNG or is it built and the hand already predetermined once it's shuffled?

Jayrocs 2019-07-19T23:39:13Z

The tiles are shuffled when a hand starts, then it is fixed during the hand. The shuffle method is pure PNG using uniform random number generator, which is pretty standard.

Oliver 2019-07-19T23:52:03Z

the pung indicator bug is fixed, cheers!

Oliver 2019-07-20T01:32:17Z

added minimal limit to win a zung jung game. cheers!

Oliver 2019-07-20T09:18:37Z

Thanks for all the work Oliver. Can't wait to play Hong Kong new style on here with my buds.

Jayrocs 2019-07-20T19:46:00Z

Oliver the mark tiles no longer works when you click Yes on mark tiles however.

Jayrocs 2019-07-20T19:49:04Z

It works now. I uploaded an old file by mistake, now it is corrected.

Hong kong style is in plan and will come soon. I am studying the rules, and will probably implement one without the flowers first.

Oliver 2019-07-21T02:53:25Z

hi, Jayrocs, thank you for all the feedbacks! They are important to me.

you know now when a hand ends, any player can click the screen and the game will restart. I am thinking of changing this to: when all players have clicked the screen, the game restarts. what do you think?

Oliver 2019-07-21T03:14:56Z

Hi Oliver, yeah Hong Kong new style variation 3 is probably simpler to implement first as it has less rules than variation 2 on the site. But go with one of those.

No flowers is actually how I prefer to play anyway so that's fine. I think having it so all players click to restart is good but maybe also have it at 15 seconds max so it restarts eventually without having all players click.

The biggest thing about Hong Kong rules though is the Faan Laak table. When you implement scoring, give a choice between Faan Laak table or just additive count the fans/points. My group prefers to play additive and will be more similar to Zung Jung and easier to implement than the table at first.

You can implement the Faan Laak scoring table later as it doubles points based to how much Faan you have similar to riichi mangan. But my group plays for money per fan so we just like simple additive fan scoring. But maybe give limit hands a 20 fan score.

Thanks.

Jayrocs 2019-07-21T20:34:16Z

Oliver also I'd like to make it clear that I do prefer Variation 2 on that website. 3 may be easier to do maybe it could be an option between scoring hands but I would prefer 2 over 3. Both however are good and 3 is more similar to how I play in real life already but 2 sounds quite fun.

So or clarify variation 2 is a wider ruleset I think more people would enjoy as long as you can do a point/fan minimum.

Thanks again.

Jayrocs 2019-07-21T21:21:35Z

No problem. will do variation 2. stay tuned.

Oliver 2019-07-21T21:39:35Z

Thanks Oliver, for Variation 2 the ones that say optional - for instance chicken hand at 3 fan. Don't include those. Don't want people being able to win with chicken hand with a 3 fan minimum as it doesn't make sense. As with no flowers, don't enable that if flowers aren't enabled to begin with, just don't add any flower based points.

Also that hidden 456 hand on a self draw win for 1 fan. That also makes no sense to add that's just free points for no reason.

Sorry to nit pick after giving you the list there's just some hands I don't feel belong.

Thanks.

Jayrocs 2019-07-21T23:32:38Z

The chicken for 3 fan and hidden 456 are strange to me too... will skip them.

for now, there will not be flower tiles in the tile set. maybe will add them later, to be authentic.

I got questions for scoring:

  1. points = 2 ^ ( sum(fan) + 1) right?
  2. what is "limit" of fan, that is, fan above 12?
  3. what pay off rule for winning on discard? there are 3 options Win by a discarded tile: Discarder pays winner full score. Win by a discarded tile: Discarder pays winner double the full score. Win by a discarded tile: Discarder pays winner full score and the other players half the winner's score.
Oliver 2019-07-22T04:21:15Z

other strange pattern: last tile; double last tile; going out; replacement tile;

Self Drawing a Single Chance 5 does not count as self draw or single chance, it is 3 fan instead of 5 fan ?

no fan for pung of dragons?

Oliver 2019-07-22T06:24:15Z

Okay to start off with just do Points = Fan.

1 Fan = 1 point is simple to remain additive. The Faan Laak table, you can do that in the future. The Faan Laak table is like this:

http://mahjong.wikidot.com/rules:hong-kong-old-style-scoring

Scroll down to see the table. You earn fan and get into new sections that double the score. Similar to Mangan table from riichi. You can skip that for now though as straight 1:1 ratio and do additive is good enough.

The payoff rule I prefer is Discarder Pays 1x and the other 2 pay 50% rounded down. So if the discarder gives a tile for 7 fan the discarder pays 7 points and the rest pay 3 because 7/2 = 3.5 rounded down is 3.

Last tile on the live wall is under the sea which should be in the riichi rules already. If that's not what you're talking about then it's the last tile remaining of it's kind. Yes that one is strange and can be skipped. Not sure what double last tile it.

Self Drawing on a single chance 5 is the pattern I told you above the 4-5-6 just don't include it. But yes the description is implying that self draw and single chance are both implied in the hand you wouldn't add it together.

Double Last Tile don't include this either. It's trying to say you have two last chances on a double sided wait since there are only 1 of each of both your waits. This one is weird and doesn't need to exist.

I don't understand what going out and replacement tile is above. Going out just means winning aka mahjong. It's not a hand, maybe it means give points for winning which I would say don't include.

Replacement tile is like riichi, win after kong. Replacing the kong or replacing flowers. Winning on a kong replacement should exist, the winning on a flower replacement doesn't need to since no flowers.

Thanks Oliver, I'll help with all scoring questions as they come.

Jayrocs 2019-07-22T07:17:25Z

And yes there is fan for a pung of winds and dragons it's just not listed on here for some reason.

Jayrocs 2019-07-22T07:18:10Z

Also Oliver sorry I noticed that Kong has no fan in the wiki I sent you. Could you have any kong, melded or secret/tsumo = 1 fan?

It is already similar to the hand called "tile hog" or "Four In One (Small)". So if you have 4 of one tile it is 1 fan, doesn't matter if it's a kong or a pung + chow.

Also I notice that it is missing short straight which is a 6 tile straight. It should be worth 1 fan and not included as part of mixed straight 2 suits. Also not part of pure straight or double short straight since it will be implied within the hand already.

And lastly in "Fully Concealed Hand" meaning you also win by self draw, if they declare a concealed kong the hand should still count as fully concealed.

Thanks.

Jayrocs 2019-07-22T08:34:56Z